home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / spawn_test.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  646 b   |  18 lines

  1. ## spawn_test
  2. # spawn MessageBox.exe three different ways
  3. # Assumptions:
  4. # 1. MessageBox.exe exists in c:\bin (prints commandline)
  5. {
  6.     -name spawn_test
  7.     -start 
  8.     -stop
  9.     -command c:\bin\MessageBox hello world (asynchronous #1)
  10.     -command c:\bin\MessageBox hello world (asynchronous #2)
  11.     -command -detach c:\bin\MessageBox hello world (detach #3)
  12.     -command -detach c:\bin\MessageBox hello world (detach #4)
  13.     -command -wait c:\bin\MessageBox hello world (synchronous #1)
  14.     -command -wait c:\bin\MessageBox hello world (synchronous #2)
  15.     -command -wait c:\bin\MessageBox hello world (synchronous #3)
  16.     -action -print ok, test complete!
  17. }
  18.